﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DotNetUI.Controls
{
    /// <summary>
    /// 翻转按钮
    /// </summary>
    public class DotNetToggleButton : ToggleButton
    {
        static DotNetToggleButton()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(DotNetToggleButton), new FrameworkPropertyMetadata(typeof(DotNetToggleButton)));
        }
        public Brush  EllipseBackground { get=>(Brush)GetValue(EllipseBackgroundProperty); set=>SetValue(EllipseBackgroundProperty,value); }
        public static readonly DependencyProperty EllipseBackgroundProperty = DependencyProperty.Register(nameof(EllipseBackground), typeof(Brush), typeof(DotNetToggleButton));

        public static readonly DependencyProperty CheckContentProperty = DependencyProperty.Register(nameof(CheckContent), typeof(object), typeof(DotNetToggleButton));
        public static readonly DependencyProperty UnCheckContentProperty = DependencyProperty.Register(nameof(UnCheckContent), typeof(object), typeof(DotNetToggleButton));
        public object CheckContent { get=>GetValue(CheckContentProperty); set=>SetValue(CheckContentProperty,value); }
        public object UnCheckContent { get => GetValue(UnCheckContentProperty); set => SetValue(UnCheckContentProperty, value); }
    }
}
